package pl.edu.mimuw.irs.core.model.analysis.subnet;

import java.util.LinkedHashMap;
import java.util.Map;

import pl.edu.mimuw.irs.core.model.design.IRSPlace;
import pl.edu.mimuw.irs.core.model.design.IRSTransition;
import pl.edu.mimuw.irs.core.model.petrinet.Net;
import pl.edu.mimuw.irs.core.model.petrinet.Place;
import pl.edu.mimuw.irs.core.model.petrinet.Transition;

public class AtomicSubnet extends Net {

	// *** Attributes
	private Map<IRSPlace, Place> placesMap;
	private Map<IRSTransition, Transition> transitionsMap;
	public Map<IRSPlace, Place> getPlacesMap() {
		if (this.placesMap == null) this.placesMap = 
			new LinkedHashMap<IRSPlace, Place>();
		return placesMap;
	}
	public void setPlacesMap(Map<IRSPlace, Place> placesMap) {
		this.placesMap = placesMap;
	}
	public Map<IRSTransition, Transition> getTransitionsMap() {
		if (this.transitionsMap == null) this.transitionsMap = 
			new LinkedHashMap<IRSTransition, Transition>();
		return transitionsMap;
	}
	public void setTransitionsMap(Map<IRSTransition, Transition> transitionsMap) {
		this.transitionsMap = transitionsMap;
	}
	
	// *** Methods
	
	
}
